package com.tbit.uqbike.object.pojo;

import com.tbit.uqbike.object.value.Page;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 活动表(InviteNewEvent)实体类
 *
 * @author jing
 * @since 2020-12-30 17:31:16
 */
@Data
@NoArgsConstructor
public class InviteNewEvent implements Serializable {
    private static final long serialVersionUID = 846069792953186741L;
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 区域id
     */
    private Integer accountId;
    /**
     * 名称
     */
    private String name;
    /**
     * 描述
     */
    private String description;
    /**
     * 详细id
     */
    private Integer detailId;
    /**
     * 活动URL
     */
    private String eventUrl;
    /**
     * 活动开始时间
     */
    private Date startTime;
    /**
     * 活动结束时间
     */
    private Date endTime;
    /**
     * 从开始邀请，到用户接受邀请有效天数
     */
    private Integer vaildDay;
    /**
     * 活动类型（暂时为邀请新用户 默认0）
     */
    private Integer type;
    /**
     * 是否有效 默认1
     */
    private Integer isvalid;

    private String UserCouponName;

    private Integer userNum;

    private String oldCouponName;

    private Integer oldNum;

    private Integer pageNO;
    private Integer rowCount;
    private Page page;

    public InviteNewEvent(Integer id, Integer isvalid) {
        this.id = id;
        this.isvalid = isvalid;
    }

    public InviteNewEvent(Integer id, Integer detailId, String userCouponName, Integer userNum, String oldCouponName, Integer oldNum) {
        this.id = id;
        this.detailId = detailId;
        UserCouponName = userCouponName;
        this.userNum = userNum;
        this.oldCouponName = oldCouponName;
        this.oldNum = oldNum;
    }
}